package cn.edu.njust.entity;

import java.util.ArrayList;
/*分页对象*/
public class Page {
    private int pageNo;             // 当前页码
    private ArrayList<Course> list; // 当前页需展示的课程集合
    private int pageSize = 10;           // 每页展示条数
    private int totalSize;          // 课程总数
    private int prevPage;           // 上一页的页码
    private int nextPage;           // 下一页的页码
    private int totalPage;

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    @Override
    public String toString() {
        return "Page{" +
                "pageNo=" + pageNo +
                ", list=" + list +
                ", pageSize=" + pageSize +
                ", totalSize=" + totalSize +
                ", prevPage=" + prevPage +
                ", nextPage=" + nextPage +
                '}';
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public ArrayList<Course> getList() {
        return list;
    }

    public void setList(ArrayList<Course> list) {
        this.list = list;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }

    public int getPrevPage() {
        return prevPage;
    }

    public void setPrevPage(int prevPage) {
        this.prevPage = prevPage;
    }

    public int getNextPage() {
        return nextPage;
    }

    public void setNextPage(int nextPage) {
        this.nextPage = nextPage;
    }


}
